package is.glif.fenius.rrm;

import java.net.Authenticator;
import java.net.PasswordAuthentication;

public class HttpAuthenticator extends Authenticator 
{
    private String username = null;
    private String password = null;

    public HttpAuthenticator (String username, String password) 
    {
	this.username = username;
	this.password = password;
    }

    protected PasswordAuthentication getPasswordAuthentication()
    {
	return new PasswordAuthentication(username, password.toCharArray());
    }

    public String myGetRequestingPrompt()
    {
	return super.getRequestingPrompt();
    }
}